#
#  Copyright 2022 The Open Islands Authors. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from pyoi.constant import CustomEnum


class TaskState(CustomEnum):
    NONE = 0
    READY = 1000
    UP_FOR_RETRY = 2000
    SCHEDULING_FAILED = 3000
    START_FAILED = 4000
    SUBMITTED = 5000
    SUBMISSION_FAILED = 6000
    RUNTIME_ABORTED = 7000
    PENDING = 8000
    ACTIVATING = 9000
    ACTIVATION_FAILED = 1100
    RUNNING = 1200
    CANCELED = 1300
    TIMEOUT = 1400
    RUN_FAILED = 1500
    SUCCESS = 1600
